<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!doctype html>
<html lang="en">

	<head>
		<title>审核任务</title>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<!-- VENDOR CSS -->
		<link rel="stylesheet" href="styles/css/bootstrap.min.css">
		<link rel="stylesheet" href="styles/css/font-awesome.min.css">
		<link rel="stylesheet" href="styles/css/style.css">
		<!-- MAIN CSS -->
		<link rel="stylesheet" href="styles/css/main.css">
		<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
		<link rel="stylesheet" href="styles/css/demo.css">
		<!-- GOOGLE FONTS -->
		<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700" rel="stylesheet">
		<!-- ICONS -->
		<link rel="apple-touch-icon" sizes="76x76" href="styles/images/apple-icon.png">
		<link rel="icon" type="image/png" sizes="96x96" href="styles/images/favicon.png">
	</head>

	<body>
		<!-- WRAPPER -->
		<div id="wrapper">
			<!-- NAVBAR -->
			<%@ include file="common/navbar.html"%>
			<!-- END NAVBAR -->
			<!-- LEFT SIDEBAR -->
			<%@ include file="common/sidebar.html"%>
			<!-- END LEFT SIDEBAR -->
			<!-- MAIN -->
			<div class="main">
				<!-- MAIN CONTENT -->
				<div class="main-content">
					<div class="container-fluid">
						<h3 class="page-title">任务结束审查</h3>
						<div class="row">
							<div class="col-md-10">
								<!-- PANEL HEADLINE -->
								<div class="panel panel-headline">
									<div class="panel-heading">
										<h3 class="panel-title">任务详细说明</h3>
									</div>
									<div class="panel-body">
										<p>${projectTask.taskContent}</p>
									</div>
								</div>
								<!-- END PANEL HEADLINE -->
							</div>
							<div class="col-md-2">
								<!-- PANEL NO PADDING -->
								<div class="row">
									<!--<input class="form-control" type="file" value="file"/>-->
									<button type="button" class="btn btn-primary btn-block">查看附件</button>
								</div>
								<br>
								<form action="checkEmpTaskExec?taskId=${projectTask.taskId}" class="form-group">
									<div class="row">
										<input type="text" class="form-control" name="taskRealPoint" placeholder="输入KPI得分">
									</div>
									<br>
									<div class="row">
										<button type="submit" class="btn btn-primary btn-block">确认结束任务</button>
									</div>
								</form>
							</div>
							<!-- END PANEL NO PADDING -->
						</div>
					</div>
					<br>
					<div class="row">
						<div class="col-md-4">
							<!-- PANEL DEFAULT -->
							<div id="panel-finall-ask" class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">任务结束要求</h3>
								</div>
								<div class="panel-body">
									<p>${projectTask.taskRequirement}</p>
								</div>
							</div>
							<!-- END PANEL DEFAULT -->
						</div>
						<div class="col-md-4">
							<!-- PANEL SCROLLING -->
							<div id="panel-before" class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">任务状态</h3>
								</div>
								<div class="panel-body">
									<p>任务进度：${projectTask.taskState}</p>
									<p>任务负责人：${projectTask.motusEmpInfoByUserId.name}</p>
									<p>最近完成内容：</p>
									<p>KPI分值：${projectTask.taskTotalPoint}</p>
								</div>
							</div>
							<!-- END PANEL SCROLLING -->
						</div>

						<div class="col-md-4">
							<div id="panel-detal" class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">任务周期</h3>
									<!--<div class="right">
										<button type="button" class="btn-toggle-collapse"><i class="lnr lnr-chevron-up"></i></button>
										<button type="button" class="btn-remove"><i class="lnr lnr-cross"></i></button>
									</div>-->
								</div>
								<div class="panel-body no-padding bg-primary text-center">
									<div class="padding-top-30 padding-bottom-30">
										<form class="form-horizontal">
											<div class="form-group">
												<label class="control-label col-md-5 ">计划开始时间：</label>
												<div class="col-md-6 ">
													<input type="text" class="form-control disabled" name="taskPlanStartTime" value="${projectTask.taskPlanStartTime}" />
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-5">计划结束时间：</label>
												<div class="col-md-6 ">
													<input type="text" class="form-control disabled" name="taskPlanEndTime" value="${projectTask.taskPlanEndTime}" />
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-5 ">实际开始时间：</label>
												<div class="col-md-6 ">
													<input type="text" class="form-control disabled" name="taskPlanStartTime" value="${projectTask.taskRealStartTime}" />
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-5">实际完成时间：</label>
												<div class="col-md-6 ">
													<input type="text" class="form-control disabled" name="taskPlanEndTime" value="${projectTask.taskRealEndTime}" />
												</div>
											</div>
										</form>
									</div>
								</div>
							</div>
							<!-- PANEL SCROLLING -->
							<!--<div id="panel-before" class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">前序任务详情</h3>
								</div>
								<div class="panel-body">
									<p>前序任务名：</p>
									<p>任务负责人：</p>
									<p>任务计划结束时间：</p>
									<p>任务状态：</p>
								</div>
							</div>-->
							<!-- END PANEL SCROLLING -->
						</div>

					</div>
				</div>
				<!-- END MAIN CONTENT -->
			</div>
			<!-- END MAIN -->
			<div class="clearfix"></div>

		</div>
		<!-- END WRAPPER -->
		<!-- Javascript -->
		<script src="scripts/common/jquery-3.2.1.min.js"></script>
		<script src="scripts/common/bootstrap.min.js"></script>
		<script src="scripts/common/jquery.slimscroll.min.js"></script>
		<script src="scripts/common/klorofil-common.js"></script>
		<script type="text/javascript" src="scripts/task/manager/unchecked_task.js"></script>
	</body>

</html>